.class public Les/a80;
.super Landroid/os/Handler;
.source "ArchiveHandler.java"


# instance fields
.field public a:Ljava/lang/String;

.field public b:J

.field public c:I

.field public d:Ljava/lang/String;

.field public e:J

.field public f:I

.field private g:J

.field private h:Ljava/lang/String;

.field private i:I

.field private j:Landroid/content/Context;

.field private k:Ljava/lang/String;

.field private l:Landroid/widget/TextView;

.field private m:Landroid/widget/TextView;

.field private n:Landroid/widget/TextView;

.field private o:Landroid/widget/ProgressBar;

.field private p:Landroid/widget/TextView;

.field private q:Landroid/widget/TextView;

.field private r:Landroid/widget/TextView;

.field private s:Ljava/lang/String;

.field private t:Lcom/estrongs/android/pop/app/compress/b;

.field private u:Lcom/estrongs/android/ui/notification/c;


# direct methods
.method public constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    const-wide/16 v0, 0x1

    .line 2
    iput-wide v0, p0, Les/a80;->b:J

    const/4 v0, 0x0

    .line 3
    iput v0, p0, Les/a80;->c:I

    const-wide/16 v1, 0x0

    .line 4
    iput-wide v1, p0, Les/a80;->e:J

    .line 5
    iput v0, p0, Les/a80;->f:I

    .line 6
    iput-wide v1, p0, Les/a80;->g:J

    const-string v1, ""

    .line 7
    iput-object v1, p0, Les/a80;->h:Ljava/lang/String;

    .line 8
    iput v0, p0, Les/a80;->i:I

    const/4 v0, 0x0

    .line 9
    iput-object v0, p0, Les/a80;->o:Landroid/widget/ProgressBar;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lcom/estrongs/android/pop/app/compress/b;Ljava/lang/String;)V
    .locals 3

    .line 10
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    const-wide/16 v0, 0x1

    .line 11
    iput-wide v0, p0, Les/a80;->b:J

    const/4 v0, 0x0

    .line 12
    iput v0, p0, Les/a80;->c:I

    const-wide/16 v1, 0x0

    .line 13
    iput-wide v1, p0, Les/a80;->e:J

    .line 14
    iput v0, p0, Les/a80;->f:I

    .line 15
    iput-wide v1, p0, Les/a80;->g:J

    const-string v1, ""

    .line 16
    iput-object v1, p0, Les/a80;->h:Ljava/lang/String;

    .line 17
    iput v0, p0, Les/a80;->i:I

    const/4 v0, 0x0

    .line 18
    iput-object v0, p0, Les/a80;->o:Landroid/widget/ProgressBar;

    .line 19
    iput-object p1, p0, Les/a80;->j:Landroid/content/Context;

    .line 20
    iput-object p2, p0, Les/a80;->t:Lcom/estrongs/android/pop/app/compress/b;

    .line 21
    iput-object p3, p0, Les/a80;->k:Ljava/lang/String;

    .line 22
    new-instance p2, Lcom/estrongs/android/ui/notification/c;

    invoke-direct {p2, p1}, Lcom/estrongs/android/ui/notification/c;-><init>(Landroid/content/Context;)V

    iput-object p2, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    .line 23
    iget-object p3, p0, Les/a80;->t:Lcom/estrongs/android/pop/app/compress/b;

    if-nez p3, :cond_0

    const p3, 0x7f0807ab

    .line 24
    invoke-virtual {p2, p3}, Lcom/estrongs/android/ui/notification/c;->a(I)V

    .line 25
    iget-object p2, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const p3, 0x7f1108dd

    invoke-virtual {p1, p3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Lcom/estrongs/android/ui/notification/c;->a(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_0
    const p3, 0x7f0807b0

    .line 26
    invoke-virtual {p2, p3}, Lcom/estrongs/android/ui/notification/c;->a(I)V

    .line 27
    iget-object p2, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const p3, 0x7f1108e4

    invoke-virtual {p1, p3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Lcom/estrongs/android/ui/notification/c;->a(Ljava/lang/CharSequence;)V

    .line 28
    :goto_0
    iget-object p1, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Lcom/estrongs/android/ui/notification/c;->b(Z)V

    .line 29
    new-instance p1, Landroid/content/Intent;

    invoke-direct {p1}, Landroid/content/Intent;-><init>()V

    .line 30
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p3

    invoke-virtual {p3}, Landroid/app/Application;->getPackageName()Ljava/lang/String;

    move-result-object p3

    const-class v0, Lcom/estrongs/android/pop/app/ShowDialogActivity;

    .line 31
    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    .line 32
    invoke-virtual {p1, p3, v0}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string p3, "compress"

    .line 33
    invoke-virtual {p1, p3, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 34
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p3

    invoke-virtual {p3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p3

    const-string v0, "application"

    invoke-virtual {p1, v0, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 35
    iget-object p3, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {p3}, Lcom/estrongs/android/ui/notification/c;->b()I

    move-result p3

    const-string v0, "notification_id"

    invoke-virtual {p1, v0, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 36
    iget-object p3, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {p3, p1, p2}, Lcom/estrongs/android/ui/notification/c;->b(Landroid/content/Intent;Z)V

    .line 37
    iget-object p1, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/notification/c;->g()V

    return-void
.end method

.method private static a(JJ)D
    .locals 3

    const-wide/16 v0, 0x0

    cmp-long v2, p2, v0

    if-nez v2, :cond_0

    const-wide/high16 p0, 0x3ff0000000000000L    # 1.0

    return-wide p0

    :cond_0
    long-to-float p0, p0

    long-to-float p1, p2

    div-float/2addr p0, p1

    const/high16 p1, 0x42c80000    # 100.0f

    mul-float p0, p0, p1

    .line 3
    new-instance p1, Ljava/math/BigDecimal;

    float-to-double p2, p0

    invoke-direct {p1, p2, p3}, Ljava/math/BigDecimal;-><init>(D)V

    const/4 p0, 0x2

    const/4 p2, 0x4

    .line 4
    invoke-virtual {p1, p0, p2}, Ljava/math/BigDecimal;->setScale(II)Ljava/math/BigDecimal;

    move-result-object p0

    invoke-virtual {p0}, Ljava/math/BigDecimal;->doubleValue()D

    move-result-wide p0

    return-wide p0
.end method


# virtual methods
.method public a(Landroid/widget/ProgressBar;)V
    .locals 0

    .line 2
    iput-object p1, p0, Les/a80;->o:Landroid/widget/ProgressBar;

    return-void
.end method

.method public a(Landroid/widget/TextView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/a80;->n:Landroid/widget/TextView;

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    return-void
.end method

.method public b(Landroid/widget/TextView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/a80;->l:Landroid/widget/TextView;

    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 1

    .line 2
    iput-object p1, p0, Les/a80;->s:Ljava/lang/String;

    .line 3
    iget-object v0, p0, Les/a80;->t:Lcom/estrongs/android/pop/app/compress/b;

    if-nez v0, :cond_0

    .line 4
    iget-object v0, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/notification/c;->b(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method public c(Landroid/widget/TextView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/a80;->m:Landroid/widget/TextView;

    return-void
.end method

.method public c(Ljava/lang/String;)V
    .locals 1

    .line 2
    iget-object v0, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/notification/c;->b(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public d(Landroid/widget/TextView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/a80;->p:Landroid/widget/TextView;

    return-void
.end method

.method public e(Landroid/widget/TextView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/a80;->q:Landroid/widget/TextView;

    return-void
.end method

.method public f(Landroid/widget/TextView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/a80;->r:Landroid/widget/TextView;

    return-void
.end method

.method public handleMessage(Landroid/os/Message;)V
    .locals 8

    .line 1
    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x0

    const/4 v2, 0x2

    const-string v3, ""

    const/4 v4, 0x1

    if-ne v2, v0, :cond_3

    .line 2
    iget-object v0, p0, Les/a80;->k:Ljava/lang/String;

    if-eqz v0, :cond_1

    const-string v5, "{0}"

    .line 3
    invoke-virtual {v0, v5}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-gez v0, :cond_0

    .line 4
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v5, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 5
    :cond_0
    iget-object v0, p0, Les/a80;->k:Ljava/lang/String;

    new-array v5, v4, [Ljava/lang/Object;

    iget-object v6, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    aput-object v6, v5, v1

    invoke-static {v0, v5}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 6
    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v5, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    const-string v5, "ArchiveHandler"

    .line 7
    invoke-static {v5, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    iget-object v5, p0, Les/a80;->j:Landroid/content/Context;

    invoke-static {v5, v0, v4}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    .line 9
    iget-object v0, p0, Les/a80;->t:Lcom/estrongs/android/pop/app/compress/b;

    if-eqz v0, :cond_2

    .line 10
    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/compress/b;->b()V

    .line 11
    :cond_2
    iget-object v0, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/notification/c;->a()V

    .line 12
    :cond_3
    iget v0, p1, Landroid/os/Message;->what:I

    if-ne v4, v0, :cond_8

    .line 13
    iget-object v0, p0, Les/a80;->o:Landroid/widget/ProgressBar;

    iget v5, p0, Les/a80;->i:I

    invoke-virtual {v0, v5}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 14
    iget-object v0, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    iget v5, p0, Les/a80;->i:I

    invoke-virtual {v0, v5}, Lcom/estrongs/android/ui/notification/c;->d(I)V

    .line 15
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz v0, :cond_4

    .line 16
    iget-object v0, p0, Les/a80;->j:Landroid/content/Context;

    const v5, 0x7f1106b0

    invoke-virtual {v0, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    new-array v6, v4, [Ljava/lang/Object;

    iget-object v7, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    aput-object v7, v6, v1

    invoke-static {v5, v6}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v0, v5, v4}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    .line 17
    :cond_4
    iget v0, p1, Landroid/os/Message;->arg1:I

    const/16 v5, 0xa

    if-ne v0, v5, :cond_5

    const/4 v1, 0x1

    :cond_5
    if-eqz v1, :cond_6

    .line 18
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.estrongs.android.intent.action.ARCHIVE_DONE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 19
    iget-object v1, p0, Les/a80;->s:Ljava/lang/String;

    const-string v4, "output_path"

    invoke-virtual {v0, v4, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 20
    iget-object v1, p0, Les/a80;->j:Landroid/content/Context;

    check-cast v1, Landroid/app/Activity;

    invoke-virtual {v1, v0}, Landroid/app/Activity;->sendBroadcast(Landroid/content/Intent;)V

    goto :goto_1

    .line 21
    :cond_6
    iget-object v0, p0, Les/a80;->t:Lcom/estrongs/android/pop/app/compress/b;

    if-eqz v0, :cond_7

    .line 22
    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/compress/b;->b()V

    .line 23
    :cond_7
    :goto_1
    iget-object v0, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/notification/c;->a()V

    const/16 v0, 0xb

    .line 24
    iget v1, p1, Landroid/os/Message;->arg1:I

    if-ne v0, v1, :cond_8

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz v0, :cond_8

    .line 25
    iget-object v0, p0, Les/a80;->j:Landroid/content/Context;

    invoke-static {v0}, Les/sx;->a(Landroid/content/Context;)V

    :cond_8
    const/4 v0, 0x7

    .line 26
    iget v1, p1, Landroid/os/Message;->what:I

    if-ne v0, v1, :cond_9

    .line 27
    iget-object p1, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/notification/c;->a()V

    return-void

    :cond_9
    const/4 v0, 0x3

    if-ne v0, v1, :cond_a

    .line 28
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Les/a80;->a(Ljava/lang/String;)V

    return-void

    :cond_a
    const/4 p1, 0x4

    if-ne p1, v1, :cond_c

    .line 29
    iget-object v0, p0, Les/a80;->m:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v3, p0, Les/a80;->c:I

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 30
    iget-wide v0, p0, Les/a80;->b:J

    invoke-static {v0, v1}, Lcom/estrongs/fs/util/f;->b(J)J

    move-result-wide v0

    iput-wide v0, p0, Les/a80;->g:J

    .line 31
    invoke-static {v0, v1}, Lcom/estrongs/fs/util/f;->e(J)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Les/a80;->h:Ljava/lang/String;

    .line 32
    iget-wide v0, p0, Les/a80;->g:J

    const-wide/16 v3, 0x0

    cmp-long v5, v0, v3

    if-nez v5, :cond_b

    const-wide/16 v0, 0x1

    .line 33
    iput-wide v0, p0, Les/a80;->g:J

    .line 34
    :cond_b
    new-instance v0, Ljava/math/BigDecimal;

    iget-wide v3, p0, Les/a80;->b:J

    long-to-double v3, v3

    iget-wide v5, p0, Les/a80;->g:J

    long-to-double v5, v5

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    invoke-static {v5, v6}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v3, v5

    invoke-direct {v0, v3, v4}, Ljava/math/BigDecimal;-><init>(D)V

    .line 35
    invoke-virtual {v0, v2, p1}, Ljava/math/BigDecimal;->setScale(II)Ljava/math/BigDecimal;

    move-result-object p1

    invoke-virtual {p1}, Ljava/math/BigDecimal;->doubleValue()D

    move-result-wide v0

    .line 36
    iget-object p1, p0, Les/a80;->r:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0, v1}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    iget-object v0, p0, Les/a80;->h:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const p1, 0x7fffffff

    .line 37
    iput p1, p0, Les/a80;->i:I

    .line 38
    iget-object v0, p0, Les/a80;->o:Landroid/widget/ProgressBar;

    invoke-virtual {v0, p1}, Landroid/widget/ProgressBar;->setMax(I)V

    .line 39
    iget-object p1, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    iget v0, p0, Les/a80;->i:I

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/notification/c;->b(I)V

    return-void

    :cond_c
    const/4 v0, 0x6

    if-ne v0, v1, :cond_10

    .line 40
    iget-wide v0, p0, Les/a80;->e:J

    invoke-static {v0, v1}, Lcom/estrongs/fs/util/f;->b(J)J

    move-result-wide v0

    .line 41
    new-instance v3, Ljava/math/BigDecimal;

    iget-wide v4, p0, Les/a80;->e:J

    long-to-double v4, v4

    long-to-double v6, v0

    invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z

    invoke-static {v6, v7}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v4, v6

    invoke-direct {v3, v4, v5}, Ljava/math/BigDecimal;-><init>(D)V

    .line 42
    invoke-virtual {v3, v2, p1}, Ljava/math/BigDecimal;->setScale(II)Ljava/math/BigDecimal;

    move-result-object p1

    invoke-virtual {p1}, Ljava/math/BigDecimal;->doubleValue()D

    move-result-wide v2

    .line 43
    iget-object p1, p0, Les/a80;->q:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    invoke-static {v0, v1}, Lcom/estrongs/fs/util/f;->e(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 44
    iget-wide v0, p0, Les/a80;->e:J

    iget-wide v2, p0, Les/a80;->b:J

    invoke-static {v0, v1, v2, v3}, Les/a80;->a(JJ)D

    move-result-wide v0

    .line 45
    iget-wide v2, p0, Les/a80;->e:J

    iget-wide v4, p0, Les/a80;->b:J

    cmp-long p1, v2, v4

    if-lez p1, :cond_d

    const-wide v0, 0x4058800000000000L    # 98.0

    .line 46
    :cond_d
    iget p1, p0, Les/a80;->i:I

    int-to-double v2, p1

    const-wide/high16 v4, 0x4059000000000000L    # 100.0

    div-double v6, v0, v4

    invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v2, v2, v6

    double-to-int p1, v2

    .line 47
    iget-object v2, p0, Les/a80;->p:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    const-string v6, "%"

    invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    cmpg-double v2, v0, v4

    if-gez v2, :cond_f

    .line 48
    iget v0, p0, Les/a80;->i:I

    if-lt p1, v0, :cond_e

    .line 49
    div-int/lit8 p1, v0, 0xa

    sub-int p1, v0, p1

    .line 50
    :cond_e
    iget-object v0, p0, Les/a80;->o:Landroid/widget/ProgressBar;

    invoke-virtual {v0, p1}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 51
    iget-object v0, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/notification/c;->d(I)V

    goto :goto_2

    .line 52
    :cond_f
    iget-object p1, p0, Les/a80;->o:Landroid/widget/ProgressBar;

    iget v0, p0, Les/a80;->i:I

    invoke-virtual {p1, v0}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 53
    iget-object p1, p0, Les/a80;->u:Lcom/estrongs/android/ui/notification/c;

    iget v0, p0, Les/a80;->i:I

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/notification/c;->d(I)V

    :goto_2
    return-void

    :cond_10
    const/4 p1, 0x5

    if-ne p1, v1, :cond_11

    .line 54
    iget-object p1, p0, Les/a80;->n:Landroid/widget/TextView;

    iget-object v0, p0, Les/a80;->d:Ljava/lang/String;

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 55
    iget-object p1, p0, Les/a80;->l:Landroid/widget/TextView;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v1, p0, Les/a80;->f:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_11
    return-void
.end method
